/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.univcasa.managing.impl;

import com.univcasa.db.model.CompteEtudiant;
import com.univcasa.managing.ApogeeStudentsManager;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author issam
 */
public class testApogeeManager {
    public static void main(String[] args){

        ApogeeStudentsManager manager = new ApogeeStudentsManagerImpl();
        HashMap form = new HashMap();
        form.put("annee", "%" ) ;
        form.put("etab", "%");
        //form.put("apogee", "%");
        //form.put("cne", "%");
        //form.put("annee", "%" ) ;
        //form.put("etab", "%");
        form.put("apogee", "%" );
        
        List lista = manager.getStdsFromApogeeByCriteria( form ,1 ) ;

        for(Iterator itr=lista.iterator(); itr.hasNext();){

            CompteEtudiant etudiant = (CompteEtudiant) itr.next();
            System.out.println("etudiant " + etudiant.getApogee() +" " + etudiant.getCin() + " " + etudiant.getNom() + " " + etudiant.getPrenom() + "naissance" + etudiant.getNaissance());
        }
    }
}